/* 动态路由表 */
/* role对应路由的角色权限 */
const asyncRouter = [
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/pages/index/index.vue'),
    meta: {
      id: ':home',
      title: '首页'
    }
  },
  {
    path: '/system/user',
    name: 'userList',
    component: () => import('@/views/pages/system/userList/index.vue'),
    meta: {
      id: ':sys:user',
      title: '用户列表'
    }
  },
  {
    path: '/system/role',
    name: 'roleList',
    component: () => import('@/views/pages/system/roleList/index.vue'),
    meta: {
      id: ':sys:role',
      title: '角色列表'
    }
  },
  {
    path: '/system/menu',
    name: 'menuList',
    component: () => import('@/views/pages/system/menuList/index.vue'),
    meta: {
      id: ':sys:menu',
      title: '菜单列表'
    }
  },
  { path: '/:pathMatch(.*)*', component: () => import('@/components/404/index.vue') }
]

export default asyncRouter
